package com.xinmao.quantitative.model;

import com.xinmao.quantitative.enums.GridTansType;
import lombok.Builder;
import lombok.Data;
import org.ta4j.core.analysis.cost.CostModel;
import org.ta4j.core.num.Num;

/**
 * @Title: GridModel
 * @Author: XYe13
 * @Date: 5/28/2024 10:09
 * @Description:
 */
@Data
@Builder
public class GridModel {
    /*网格上限价格*/
    private Num upPrice;
    /*网格下限价格*/
    private Num lowPrice;
    /*网格索引*/
    private int index;

    private String name;

    private Num beta;

    private Num alpha;

    private CostModel costModel;
    /*单次购买数量*/
    private Num buyNum;
    /*按百分比*/
    private Num byPercent;
    /*按具体金额*/
    private Num byAmount;
    /*网格交易类型*/
    private GridTansType gridTansType;
    /*最大持仓数*/
    private Num maxHoldNum;
    /*进入单价*/
    private Num enterPrice;

}
